﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Text;

namespace AVISOutBound.SSOServer.Payment.Dto
{
    /// <summary>
    /// 创建支付单 输入参数
    /// </summary>
    public class CreatePayOrderInput
    {
        /// <summary>
        /// 订单ID
        /// </summary>
        //[Required]    临时关闭为了演示，后续需要打开
        public string OrderId { get; set; }

        /// <summary>
        /// 订单号
        /// </summary>
        [Required]
        public string OrderNo { get; set; }

        /// <summary>
        /// 支付类型。1:微信,2:支付宝
        /// </summary>
        [Required]
        public PayType PayType { get; set; }

        /// <summary>
        /// 是否微信浏览器。true:是,false:否
        /// </summary>
        public bool IsWechatBrowser { get; set; }

        /// <summary>
        /// 是否手机支付。true:是,false:否
        /// </summary>
        public bool IsMobilePay { get; set; }

        /// <summary>
        /// 重定向地址
        /// </summary>
        [Required]
        public string RedirectUrl { get; set; }
    }
}
